/*************
//Function: afford top frame body collapse and open function.
//edit by jfn
//2004-3-23
*/
var TOP_VIEW="open";  //开放状态

function topOpen()
{
   TOP_VIEW="open";
   topOpenSwitch();
}

function topOpenSwitch()
{
   if(TOP_VIEW=="close")
   {
      //parent.actionArea.cols="150,*";
      TOP_VIEW="open";
      frmList.imgCollapse.src="../../Images/button_collapse.gif";
   }
   else
   {
      //parent.actionArea.cols="25,*";
      TOP_VIEW="close";
      frmList.imgCollapse.src="../../Images/button_close.gif";
   }
}

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined')
    {
        return false;
    }
	theRow.bgColor=thePointerColor;
    //var row_cells_cnt=theRow.cells.length;
    //for (var c = 0; c < row_cells_cnt; c++)
    //{
    //    theRow.cells[c].bgColor = thePointerColor;
   // }

    return true;
}

